/*
 * @Author: 高宇 gy15354315043@163.com
 * @Date: 2024-04-10 09:57:58
 * @LastEditors: miteng 973203639@qq.com
 * @LastEditTime: 2024-08-05 16:25:11
 * @Description: 
 * Copyright (c) 2024-present HBIS Digital Technology Co.,Ltd. All rights reserved. 
 */
/**
 * 账号密码登录数据类型
 */
export interface LoginData {
  account?: string;
  password?: string;
  tenantId?: string;
  hasKaptcha?: boolean;
  pageKaptchaWidth?: string;
  moveLength?: number;
  kaptchaRequestId?: string;
  loginRequest?: {
    account: string;
    password: string;
    tenantId: string;
    hasKaptcha: boolean;
    pageKaptchaWidth: string;
    moveLength: number;
    kaptchaRequestId: string;
    appRedirectUrl?: string;
    authMode?: string;
    ssoLoginFlag?: boolean;
  };
  ssoLoginParam?: {
    appRedirectUrl?: string;
    authMode?: string;
    ssoLoginFlag?: boolean;
  }
  /**
   * 验证码Code
   */
  //verifyCode: string;
  /**
   * 验证码Code服务端缓存key(UUID)
   */
  // verifyCodeKey: string;
}

/**
 * Token响应类型
 */
export interface TokenResult {
  accessToken: string;
  refreshToken: string;
  expires: number;
  appRedirectflag: boolean;
  loginResponse: { token: string; };
  appRedirectUrl: string;
}

/**
 * 验证码类型
 */
export interface VerifyCode {
  verifyCodeImg: string;
  verifyCodeKey: string;
}
/**
 * 验证码类型
 */
export interface simpleUserInfoLoginRes {
  token: string;
  pwdBeAboutExpired: false;
  pwdExpiredDays: number;
  pwdExpiredTime: string;
}
